Below are the datatypes available in java.

   1. Number data types: 
       a. byte-->     1 byte
       b. short-->    2 byte
       c. int--->     4 bytes
       d. long-->     8 bytes
	   
   2. Decimal data types:
      a. float--->   4 bytes
      b. double--->  8 bytes
	   
   3. boolean--->   1 bit--->it accepts true or false
	 
   4. char---> 2 bytes
	 
   5. String
   
   6. Class/abstract class
   
   7. Interface
   
   8. Object (Super class of all the classes in Java)
   
   10. array (Primitive & Object)


All the datatypes in java are primitive types except String, class, Interface, Object. Bcoz these are object/class.


Q: What is primitive type datatypes?
Ans: The datatypes which are non object are k.a., primitive datatypes.
Ex: byte, short, int, long, float, double, char, boolean


Note: As java is OOP , some time we can't use primitive types as it is especially in case of collection. So we may need to convert the primitive type into object.


Q: How convert the primitive types into object?
Ans: We can convert the primitive type datatypes into Object using wrapper classes.


Q: What are wrapper classes?
Ans: Wrapper classes are the pre-defined classes in java which are used to convert the primitive types into object.

Ex:
primitive type			Wrapper Classes
byte					Byte
short					Short
int						Integer
long					Long
float					Float
double					Double
boolean					Boolean
char					Character
